package com.chenailin.www.service;

import com.chenailin.www.dao.AdministratorDAO;
import com.chenailin.www.daoimpl.AdministratorDAOImpl;
import com.chenailin.www.exception.ServiceException;
import com.chenailin.www.pojo.Administrator;

import java.sql.SQLException;

public class AdministratorService {

    AdministratorDAO administratorDAO=new AdministratorDAOImpl();
    // 修改密码
    public boolean modifyPassword(Administrator administrator) {
        try {
            return administratorDAO.modifyPassword(administrator);
        } catch (SQLException e) {
            throw new ServiceException("修改密码失败", e);
        }
    }
}
